
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for ykjhCzb.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="ykjhCzbForm"
 */
public class YkjhCzbForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _jhbh = null;
   private java.lang.String _nd = null;
   private java.lang.String _bh = null;
   private java.lang.String _hzbh = null;
   private java.math.BigDecimal _yf = null;
   private java.lang.String _sqflDm = null;
   private java.lang.String _zjxzDm = null;
   private java.lang.String _yslxDm = null;
   private java.lang.String _zffsDm = null;
   private java.lang.String _zclxDm = null;
   private java.lang.String _yskmbh = null;
   private java.lang.String _xmbh = null;
   private java.math.BigDecimal _sbje = null;
   private java.math.BigDecimal _kzje = null;
   private java.lang.String _sjztBz = null;
   private java.lang.String _lrsj = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _dbjhBz = null;
   private java.lang.String _xtjhBz = null;
   private java.lang.String _jhzybh = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   /** zouyalei 2012-10-29 */
   private java.lang.String _ysxxglh;
   private java.lang.String _tdyy;
   //duliaoyuan 2013-02-20
   private java.lang.String _pfztBz;
   /**
    * Standard constructor.
    */
   public YkjhCzbForm() {
   }

   /**
    * Returns the jhbh
    *
    * @return the jhbh
    */
   public java.lang.String getJhbh() {
      return _jhbh;
   }

   /**
    * Sets the jhbh
    *
    * @param jhbh the new jhbh value
    */
   public void setJhbh(java.lang.String jhbh) {
      _jhbh = jhbh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the bh
    *
    * @return the bh
    */
   public java.lang.String getBh() {
      return _bh;
   }

   /**
    * Sets the bh
    *
    * @param bh the new bh value
    */
   public void setBh(java.lang.String bh) {
      _bh = bh;
   }
   /**
    * Returns the hzbh
    *
    * @return the hzbh
    */
   public java.lang.String getHzbh() {
      return _hzbh;
   }

   /**
    * Sets the hzbh
    *
    * @param hzbh the new hzbh value
    */
   public void setHzbh(java.lang.String hzbh) {
      _hzbh = hzbh;
   }
   /**
    * Returns the yf
    *
    * @return the yf
    */
   public java.math.BigDecimal getYf() {
      return _yf;
   }

   /**
    * Sets the yf
    *
    * @param yf the new yf value
    */
   public void setYf(java.math.BigDecimal yf) {
      _yf = yf;
   }
   /**
    * Returns the sqflDm
    *
    * @return the sqflDm
    */
   public java.lang.String getSqflDm() {
      return _sqflDm;
   }

   /**
    * Sets the sqflDm
    *
    * @param sqflDm the new sqflDm value
    */
   public void setSqflDm(java.lang.String sqflDm) {
      _sqflDm = sqflDm;
   }
   /**
    * Returns the zjxzDm
    *
    * @return the zjxzDm
    */
   public java.lang.String getZjxzDm() {
      return _zjxzDm;
   }

   /**
    * Sets the zjxzDm
    *
    * @param zjxzDm the new zjxzDm value
    */
   public void setZjxzDm(java.lang.String zjxzDm) {
      _zjxzDm = zjxzDm;
   }
   /**
    * Returns the yslxDm
    *
    * @return the yslxDm
    */
   public java.lang.String getYslxDm() {
      return _yslxDm;
   }

   /**
    * Sets the yslxDm
    *
    * @param yslxDm the new yslxDm value
    */
   public void setYslxDm(java.lang.String yslxDm) {
      _yslxDm = yslxDm;
   }
   /**
    * Returns the zffsDm
    *
    * @return the zffsDm
    */
   public java.lang.String getZffsDm() {
      return _zffsDm;
   }

   /**
    * Sets the zffsDm
    *
    * @param zffsDm the new zffsDm value
    */
   public void setZffsDm(java.lang.String zffsDm) {
      _zffsDm = zffsDm;
   }
   /**
    * Returns the zclxDm
    *
    * @return the zclxDm
    */
   public java.lang.String getZclxDm() {
      return _zclxDm;
   }

   /**
    * Sets the zclxDm
    *
    * @param zclxDm the new zclxDm value
    */
   public void setZclxDm(java.lang.String zclxDm) {
      _zclxDm = zclxDm;
   }
   /**
    * Returns the yskmbh
    *
    * @return the yskmbh
    */
   public java.lang.String getYskmbh() {
      return _yskmbh;
   }

   /**
    * Sets the yskmbh
    *
    * @param yskmbh the new yskmbh value
    */
   public void setYskmbh(java.lang.String yskmbh) {
      _yskmbh = yskmbh;
   }
   /**
    * Returns the xmbh
    *
    * @return the xmbh
    */
   public java.lang.String getXmbh() {
      return _xmbh;
   }

   /**
    * Sets the xmbh
    *
    * @param xmbh the new xmbh value
    */
   public void setXmbh(java.lang.String xmbh) {
      _xmbh = xmbh;
   }
   /**
    * Returns the sbje
    *
    * @return the sbje
    */
   public java.math.BigDecimal getSbje() {
      return _sbje;
   }

   /**
    * Sets the sbje
    *
    * @param sbje the new sbje value
    */
   public void setSbje(java.math.BigDecimal sbje) {
      _sbje = sbje;
   }
   /**
    * Returns the kzje
    *
    * @return the kzje
    */
   public java.math.BigDecimal getKzje() {
      return _kzje;
   }

   /**
    * Sets the kzje
    *
    * @param kzje the new kzje value
    */
   public void setKzje(java.math.BigDecimal kzje) {
      _kzje = kzje;
   }
   /**
    * Returns the sjztBz
    *
    * @return the sjztBz
    */
   public java.lang.String getSjztBz() {
      return _sjztBz;
   }

   /**
    * Sets the sjztBz
    *
    * @param sjztBz the new sjztBz value
    */
   public void setSjztBz(java.lang.String sjztBz) {
      _sjztBz = sjztBz;
   }
   /**
    * Returns the lrsj
    *
    * @return the lrsj
    */
   public java.lang.String getLrsj() {
      return _lrsj;
   }

   /**
    * Sets the lrsj
    *
    * @param lrsj the new lrsj value
    */
   public void setLrsj(java.lang.String lrsj) {
      _lrsj = lrsj;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the dbjhBz
    *
    * @return the dbjhBz
    */
   public java.lang.String getDbjhBz() {
      return _dbjhBz;
   }

   /**
    * Sets the dbjhBz
    *
    * @param dbjhBz the new dbjhBz value
    */
   public void setDbjhBz(java.lang.String dbjhBz) {
      _dbjhBz = dbjhBz;
   }
   /**
    * Returns the xtjhBz
    *
    * @return the xtjhBz
    */
   public java.lang.String getXtjhBz() {
      return _xtjhBz;
   }

   /**
    * Sets the xtjhBz
    *
    * @param xtjhBz the new xtjhBz value
    */
   public void setXtjhBz(java.lang.String xtjhBz) {
      _xtjhBz = xtjhBz;
   }
   /**
    * Returns the jhzybh
    *
    * @return the jhzybh
    */
   public java.lang.String getJhzybh() {
      return _jhzybh;
   }

   /**
    * Sets the jhzybh
    *
    * @param jhzybh the new jhzybh value
    */
   public void setJhzybh(java.lang.String jhzybh) {
      _jhzybh = jhzybh;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }

   public java.lang.String getYsxxglh(){
	   return _ysxxglh;
   }

   public void setYsxxglh(java.lang.String ysxxglh){
	   _ysxxglh = ysxxglh;
   }
   
   public java.lang.String getTdyy(){
	   return _tdyy;
   }
   
   public void setTdyy(java.lang.String tdyy){
	   _tdyy = tdyy;
   }
   public String getPfztBz() {
		return _pfztBz;
	}

	public void setPfztBz(String pfztBz) {
		this._pfztBz = pfztBz;
	}
   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getJhbh() == null) {
         errors.add("jhbh", new ActionError("error.jhbh.required"));
      }
      if(getNd() == null) {
         errors.add("nd", new ActionError("error.nd.required"));
      }
      if(getBh() == null) {
         errors.add("bh", new ActionError("error.bh.required"));
      }
      if(getYf() == null) {
         errors.add("yf", new ActionError("error.yf.required"));
      }
      if(getZjxzDm() == null) {
         errors.add("zjxzDm", new ActionError("error.zjxzDm.required"));
      }
      if(getYslxDm() == null) {
         errors.add("yslxDm", new ActionError("error.yslxDm.required"));
      }
      if(getZffsDm() == null) {
         errors.add("zffsDm", new ActionError("error.zffsDm.required"));
      }
      if(getZclxDm() == null) {
         errors.add("zclxDm", new ActionError("error.zclxDm.required"));
      }
      if(getYskmbh() == null) {
         errors.add("yskmbh", new ActionError("error.yskmbh.required"));
      }
      if(getSbje() == null) {
         errors.add("sbje", new ActionError("error.sbje.required"));
      }
      if(getKzje() == null) {
         errors.add("kzje", new ActionError("error.kzje.required"));
      }
      if(getSjztBz() == null) {
         errors.add("sjztBz", new ActionError("error.sjztBz.required"));
      }
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      if(getDbjhBz() == null) {
         errors.add("dbjhBz", new ActionError("error.dbjhBz.required"));
      }
      if(getXtjhBz() == null) {
         errors.add("xtjhBz", new ActionError("error.xtjhBz.required"));
      }
      if(getJhzybh() == null) {
         errors.add("jhzybh", new ActionError("error.jhzybh.required"));
      }
      if(getYsxxglh() == null){
    	  errors.add("ysxxglh", new ActionError("error.ysxxglh.required"));
      }
      if(getTdyy() == null){
    	  errors.add("tdyy", new ActionError("error.tdyy.required"));
      }
      // TODO test format/data
      return errors;
   }
}
